package com.lagou.edu.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author lyj
 * @Title: MailServiceFeignClient
 * @ProjectName homework-parent
 * @Description: TODO
 * @date 2021/1/3 0:19
 */
@FeignClient(value = "lagou-service-email",fallback = MailServiceFallback.class,path = "/email")
public interface MailServiceFeignClient {
    @GetMapping("/toemail/{email}")
     boolean email(@PathVariable(value = "email")String email);
}
